//
//  ViewController.m
//  LZFPlaceholderTextView
//
//  Created by 梁梓烽 on 16/7/7.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

#import "ViewController.h"

#import "LZFPlaceholderTextView.h"
//函数调用输出
#define LZFFunc LZFLog(@"%s",__func__)


//强指针转弱指针
#define WeakSelf __weak typeof(self) weakSelf =self;
//输出函数 log
#ifdef DEBUG // 调试
// ...:宏里面可变参数
#define LZFLog(...) NSLog(__VA_ARGS__)

#else // 发布

#define LZFLog(...)

#endif
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UITextView *textView;
@property(nonatomic,weak)LZFPlaceholderTextView *texttview;


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    LZFPlaceholderTextView *view=[[LZFPlaceholderTextView alloc]init];
    view.placeHodlerColor=[UIColor blueColor];
    view.placeHolder=@"sdfasfesefwefef占位文字";
    view.alwaysBounceVertical=YES;
    view.backgroundColor=[UIColor redColor];
    view.frame=self.view.bounds;
    [self.view addSubview:view];
    
  
}


@end
